import OSS from '../src/index';

(async () => {
  const ossclient = new OSS({
    bucket: 'knowledge-pl',
    endpoint: 'oss-cn-hangzhou.aliyuncs.com',
    accessKeyId: 'LTAIa74e7menLgAX',
    accessKeySecret: '56l7IqhSlpEFDu6QZzRBnHXHVqh7Ks',
  });
  // const ossclient = new OSS(
  //   {
  //     "stsToken": "CAIS5wJ1q6Ft5B2yfSjIr5DNI87HhbcWzoOaSBD0hzgGabZdhvPAgTz2IHhMfHFvCeAetv0ynGBW6/8YloNsQphMRAmYPMAv4M4M+EatPIbM/pC7tuNBgc3+Ry3DVEOmhZHfO+vyF4iFxHYAkYyexEFJ2rLfWWiIfT7MaO+k6/NOatAQQXPLD15vD8tXIQ1PsdITMWCrW9+mLh/thBi7biMqwH0e71ly8qOi2MaRxwPDhVnhsI8vqp/2P4KvYrsHXv49ca/shbMrJvWYjncLukEUqfkstsEep2eb5OP6KkJK/hCLP9DT9tBSNwJjbsA4YfUc9KCkyq0o4rSKytynlUsUZ/ssWCDeSYa8hczfA6a0LtI+fLrrwbdANBdJ1fMf2iFTghJzXGsiE7JJoc/uyBuWNHqTrCPzTdouztM/rwShkcBQn9M8hA7TnvGhRCOUIL7Sqk17YbQfAi1lSVh4lAKOfMedTXogLTsPbxqAAU8XH6uHSyFEkS7eO9vU2I/JE7y9UmRaySPldB6D5UPOQTEOzrfH7RibTL+w/CBl3YtkOJ7s1WOihx3C+10OCC2CqfB6yUO8uq8SevPXWPB5/GSblQcfYnYAKK/C6O4/jooTFrnENoiS0vbbw+8KpSScL54y1IsvCWQNEzV7LcY9IAA=",
  //     "accessKeySecret": "EUJjpN6G649v4fYbaEWky9QmAUiHWiD1RBcAEooUKZ9Q",
  //     "accessKeyId": "STS.NSxhtshh7yAqJ6Ec8Se9qi6kc",
  //     "endpoint": "oss-cn-hangzhou.aliyuncs.com",
  //     "bucket": "knowledge-pl",
  //     region: 'oss-cn-hangzhou'
  //   }
  // )
  // const saveKey = 'unc-emails/test446.txt'
  // const res = await ossclient.put(saveKey, 'hello world');
  // console.log(res);
  // await ossclient.putACL(saveKey, 'private');
  await ossclient.del('examine_plugins/20250116/f8b24a1c-1008-4613-b3a1-c03877051708.json')
})();